<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>代理商后台</title>
		<link rel="stylesheet" type="text/css" href="__ACSS__/reset.css"/>
		<link rel="stylesheet" type="text/css" href="__ACSS__/style.css"/>
		<link rel="stylesheet" href="__AJS__/datepicker/css/jquery.ui.core.css">
		<link rel="stylesheet" href="__AJS__/datepicker/css/jquery.ui.theme.css">
		<link rel="stylesheet" href="__AJS__/datepicker/css/jquery.ui.datepicker.css">
		<link rel="stylesheet" href="__AJS__/datepicker/css/demos.css">
		<script src="__AJS__/jquery-1.8.2.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div class="container clearfix">
			<!--头部-->
			<div class="header clearfix">
				 <span class="header-sys fl">期权代理商管理平台</span>
				 <span class="fr header-welcome">欢迎{:session('AGENT.user_name')}登录<a href="{:U('AgentPublic/out')}" class="header-login">【退出】</a></span>
			</div>
			<!--侧边菜单栏-->
			<div class="nav">
				<div class="cancel-manage">
					<p class="nav-photo"><img src="{:session('AGENT.headimgurl')}"/></p>
				</div>

				<a href = "{:U('AgentIndex/index')}"><div class="subNav <if condition="CONTROLLER_NAME == AgentIndex">currentDt currentDf</if>"><i class="icon icon-fund"></i>我的资金</div></a>
				<ul class="navContent"></ul>

				<div class="subNav <if condition="CONTROLLER_NAME  eq AgentCustomer && ACTION_NAME eq index || ACTION_NAME eq fund">currentDt currentDf</if>"><i class="icon icon-client"></i>客户管理</div>
				<ul class="navContent" style =<if condition="CONTROLLER_NAME  == AgentCustomer && ACTION_NAME eq index || ACTION_NAME eq fund">display:block</if>>
					<li><a href="{:U('AgentCustomer/index')}">. 客户信息</a></li>
					<li><a href="{:U('AgentCustomer/fund')}">. 资金明细</a></li>
					<!-- <li><a href="#">. 经纪人审核</a></li> -->
				</ul>
				<div class="subNav <if condition="ACTION_NAME eq order|| ACTION_NAME eq henzhiOrder|| ACTION_NAME eq ouyuanOrder|| CONTROLLER_NAME eq AgentGoldOrder || CONTROLLER_NAME eq AgentDollarOrder || CONTROLLER_NAME eq AgentDaxOrder || CONTROLLER_NAME eq AgentBiteOrder">currentDt currentDf</if>"><i class="icon icon-count"></i>统计信息</div>
				<ul class="navContent" style =<if condition="ACTION_NAME eq order|| ACTION_NAME eq henzhiOrder|| ACTION_NAME eq ouyuanOrder|| CONTROLLER_NAME eq AgentGoldOrder || CONTROLLER_NAME eq AgentDollarOrder || CONTROLLER_NAME eq AgentDaxOrder || CONTROLLER_NAME eq AgentBiteOrder">display:block</if>>
					<li><a href="{:U('AgentCustomer/order')}">. 订单信息</a></li>
					<li><a href="{:U('AgentCustomer/henzhiOrder')}">. 恒指订单</a></li>
					<li><a href="{:U('AgentCustomer/ouyuanOrder')}">. 欧元订单</a></li>
					<li><a href="{:U('AgentGoldOrder/index')}">. 伦敦金订单</a></li>
					<li><a href="{:U('AgentDollarOrder/index')}">. 美元订单</a></li>
					<li><a href="{:U('AgentDaxOrder/index')}">. 徳指订单</a></li>
					<li><a href="{:U('AgentBiteOrder/index')}">. 比特币订单</a></li>
					<!-- <li><a href="#">. 赠金记录</a></li>
					<li><a href="#">. 客户报表</a></li>
					<li><a href="#">. 客户详细报表</a></li> -->
				</ul>
				<a href = "{:U('AgentCustomer/voucher')}" ><div class="subNav <if condition="ACTION_NAME eq voucher">currentDt currentDf</if>"><i class="icon icon-rate"></i>佣金管理</div></a>
				<if condition = "session('AGENT.pt_role') eq 2">
				<div class="subNav <?php if(CONTROLLER_NAME == AgentOptionWriter){echo 'currentDt currentDf';}?>"><i class="icon icon-count"></i>坐市商管理</div>
				<ul class="navContent" style =<if condition="CONTROLLER_NAME == AgentOptionWriter">display:block</if>>
					<li><a href="{:U('AgentOptionWriter/index?type=1')}">. 收益亏损</a></li>
					<li><a href="{:U('AgentOptionWriter/index?type=2')}">. 出入金</a></li>
					<li><a href="{:U('AgentOptionWriter/index?type=3')}">. 手续费</a></li>
				</ul>
				</if>
				<ul class="navContent"></ul>
				<a href="{:U('AgentSet/pwd_change')}"><div class="subNav <?php if(CONTROLLER_NAME == AgentSet){echo 'currentDt currentDf';}?>"><i class="icon icon-set"></i>设置</div></a>
				<ul class="navContent"></ul>
			</div>

			<!--主体内容-->
			<block name="content">

			</block>
		</div>
	</body>
	<script src="__AJS__/datepicker/js/jquery-1.8.3.js"></script>
	<script src="__AJS__/datepicker/js/jquery.ui.core.js"></script>
	<script src="__AJS__/datepicker/js/jquery.ui.widget.js"></script>
	<script src="__AJS__/datepicker/js/jquery.ui.datepicker.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$(".subNav").click(function(){
                $(this).toggleClass("currentDt").siblings(".subNav").removeClass("currentDt");
                $(this).next(".navContent").slideToggle().siblings(".navContent").slideUp();

            })
			$( ".current-stardate,.current-enddate" ).datepicker({ dateFormat: 'yy-mm-dd' }).val();

		});
	</script>
</html>
